package com.WebMentorPro.system.mapper;

import com.WebMentorPro.system.model.dto.activity.ActivityQueryRequest;
import com.WebMentorPro.system.model.dto.activity.ActivityQueryRequestByStudent;
import com.WebMentorPro.system.model.entity.Activity;
import com.WebMentorPro.system.model.vo.ActivityVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author bianxiaoyao
* @description 针对表【activity(异科导师活动表)】的数据库操作Mapper
* @createDate 2024-11-24 11:24:42
* @Entity generator.domain.Activity
*/
public interface ActivityMapper extends BaseMapper<Activity> {

    List<ActivityVO> getQuery(@Param("pageParam") Page<ActivityVO> pageParam,
                                  @Param("activityQueryRequest") ActivityQueryRequest activityQueryRequest);

    List<ActivityVO> getQueryByMy(@Param("pageParam") Page<ActivityVO> pageParam,
                                  @Param("activityQueryRequest") ActivityQueryRequest activityQueryRequest,
                                  @Param("teacherName") String teacherName);

    List<ActivityVO> getQueryByStudent(@Param("pageParam") Page<ActivityVO> pageParam,
                                       @Param("activityQueryRequest") ActivityQueryRequestByStudent activityQueryRequest,
                                       @Param("teacherId") int teacherId);
}




